package com.dwj.auto.comment.service.impl;

import com.dwj.auto.comment.common.response.PageResponse;
import com.dwj.auto.comment.config.mybatis.plus.CommonServiceImpl;
import com.dwj.auto.comment.dao.entity.StuClass;
import com.dwj.auto.comment.dao.mapper.StuClassMapper;
import com.dwj.auto.comment.model.req.StuClassCriteria;
import com.dwj.auto.comment.model.req.StuClassSearchCriteria;
import com.dwj.auto.comment.model.vo.StuClassSearchVo;
import com.dwj.auto.comment.model.vo.StuClassVo;
import com.dwj.auto.comment.service.IStuClassService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author dwjian
 * @since 2020-01-19
 */
@Service
public class StuClassServiceImpl extends CommonServiceImpl<StuClassMapper, StuClass> implements IStuClassService {

    @Override
    public PageResponse<StuClassVo> getList(StuClassCriteria criteria) {
        return PageResponse.success(this.baseMapper.getList(criteria.buildPage(), criteria));
    }

    @Override
    public PageResponse<StuClassSearchVo> searchList(StuClassSearchCriteria criteria) {
        return PageResponse.success(this.baseMapper.searchList(criteria.buildPage(), criteria));
    }
}
